package com.erb.service.ljy;

import com.erb.entity.signCalc;
import com.erb.entity.signDetail;
import com.erb.mapper.signMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * ClassName: pointService
 * Description:
 * date: 2020/6/16 15:36
 *
 * @author JY
 */

@Service
@Transactional
public class signService {

	@Resource
	private signMapper signMapper;

	public signDetail todayDeatil(String today, Integer userId) {
		return signMapper.todayDeatil(today, userId);
	}

	public signDetail yestDeatil(String yestday, Integer userId) {

		return signMapper.yestDeatil(yestday, userId);
	}

	public Integer getcDays(Integer userId) {
		return signMapper.getcDays(userId);
	}

	//     添加签到详情表
	public void addsDetail(signDetail signDetail) {
		signMapper.addsDetail(signDetail);
	}

	//    添加签到记录表
	public void addsCalc(signCalc signCalc) {
		signMapper.addsCalc(signCalc);
	}

	//    修改签到记录表
	public void updateSignCalc(signCalc signCalc) {
		signMapper.updateSignCalc(signCalc);
	}

}
